package com.report.dto.response;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.DbIgnore;
import cn.zhxu.bs.bean.SearchBean;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/13 09:38
 */
@Data
@SearchBean(tables = " subscribe s LEFT JOIN research_tag t  ON s.tagId=t.id  AND t.mark=2",autoMapTo = "s",orderBy = "s.createTime DESC")
public class SubscribeRes implements Serializable {

    @DbField("s.id")
    private Integer id;

    @DbField("s.memberId")
    private Integer memberId;

    @DbField("s.tagId")
    private Integer tagId;

    @DbField("t.name")
    private String industryName;

    @DbIgnore
    private List<ReportRes> reportResList;

    @DbIgnore
    private Long reportNum;
}
